int choice = 1;
int ch;
bool exit = 0, BoolEnter;


int mainmenu()
{
    resize_term(50, 160);

    attron( A_BOLD );
    mvprintw(1,((COLS - strlen("HighSchool RogueLike (HSRL)"))/2), "HighSchool RogueLike (HSRL)");
    mvprintw(4,((COLS - strlen("PRESS ANY KEY TO CONTINUE"))/2), "PRESS ANY KEY TO CONTINUE");
    attroff( A_BOLD );

    while (!exit)

    {
        ch = getch();
        mvprintw(4,0,"\n");

        switch (ch)

        {
        case 'w':
            choice--;
            break;
        case 's':
            choice++;
            break;
        case KEY_UP:
            choice--;
            break;
        case KEY_DOWN:
            choice++;
            break;
        default:
            break;
        }
    if (BoolEnter && ch == '\n') return choice;

    if (ch == '\n') BoolEnter = 1;

    if (!choice) choice = 4;

    if (choice == 5) choice = 1;

    if (choice == 1) attron(A_BOLD);

    mvprintw(4,((COLS - strlen("HighSchool RogueLike (HSRL)"))/2), "1. New Game");

    attroff(A_BOLD);

    if (choice == 2) attron(A_BOLD);

    mvprintw(6,((COLS - strlen("HighSchool RogueLike (HSRL)"))/2), "2. Load Game");

    attroff(A_BOLD);

    if (choice == 3) attron(A_BOLD);

    mvprintw(8,((COLS - strlen("HighSchool RogueLike (HSRL)"))/2), "3. Options");

    attroff(A_BOLD);

    if (choice == 4) attron(A_BOLD);

    mvprintw(10,((COLS - strlen("HighSchool RogueLike (HSRL)"))/2), "4. Exit");

    attroff(A_BOLD);

    }


}
